package com.lantosec.hmrp.modules.archives.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserTrain;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 培训信息表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserTrain对象", description="培训信息表")
public class UserTrainVO extends BaseVO<UserTrain> {
    private static final long serialVersionUID = 1L;


    public UserTrainVO(UserTrain entity){
        this.userTrainId = entity.getUserTrainId();
        this.userId = entity.getUserId();
        this.name = entity.getName();
        this.startDate = entity.getStartDate();
        this.endDate = entity.getEndDate();
        this.period = entity.getPeriod();
        this.form = entity.getForm();
        this.content = entity.getContent();
        this.grade = entity.getGrade();
        this.cost = entity.getCost();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserTrain convertToEntity(){
        return new UserTrain(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userTrainId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "培训名称")
    private String name;

    @ApiModelProperty(value = "开始时间")
    private String startDate;

    @ApiModelProperty(value = "结束时间")
    private String endDate;

    @ApiModelProperty(value = "学时")
    private String period;

    @ApiModelProperty(value = "培训方式")
    private String form;

    @ApiModelProperty(value = "培训内容")
    private String content;

    @ApiModelProperty(value = "培训成绩")
    private BigDecimal grade;

    @ApiModelProperty(value = "培训费用")
    private BigDecimal cost;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
